Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken tests in PHP 5.5 #1293

Merged
merged 3 commits into from
Sep 12, 2016

Conversation

rclations
Copy link

(still in progress)

@rclations rclations added this to the 0.5.5 - Story Elements milestone Sep 9, 2016
@rclations
Copy link
Author

for #1209

@rclations
Copy link
Author

all checks passing! read to go!

@aschweigert aschweigert merged commit 9ba96a4 into WPBuddy:develop Sep 12, 2016
@@ -318,6 +318,11 @@ function test_largo_transition_nav_menus() {
}

function test_largo_update_prominence_term_description_single() {
$term9 = get_term_by('slug', 'term-9', 'prominence', 'ARRAY_A');
if ( ! $term9 ) {
wp_insert_term( 'term-9', 'prominence', array( 'description' => 'Term Description 9' ) );
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't have to create this term; it should have been created by this class' setUp method: https://github.com/rclations/Largo/blob/a773c5a2cfdbb7706c41085e8388f0d83b583e8e/tests/inc/test-update.php#L29-L31

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous comment might be wrong, based on #1209 (comment)

Either way, the test tests what it's supposed to test.

@benlk benlk mentioned this pull request Oct 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants